#ifndef _INPUTCLASS_H_
#define _INPUTCLASS_H_

#define DIRECTINPUT_VERSION 0x0800

#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxguid.lib")

#include <dinput.h>
/** \brief Klass f&ouml;r hantering av tangentbord
*
* 
*/
class InputClass
{
public:
	InputClass();
	InputClass(const InputClass&);
	~InputClass();

	bool Initialize(HINSTANCE, HWND, int, int);
	void Shutdown();
	bool Frame();

	bool IsEscapePressed();
	//bool IsLeftMousePressed();
	//void GetMouseLocation(int&, int&);
	void GetKeyboardCoord(int&, int&);

private:
	bool ReadKeyboard();
	//bool ReadMouse();
	void ProcessInput();

private:
	IDirectInput8* m_directInput;
	IDirectInputDevice8* m_keyboard;
	//IDirectInputDevice8* m_mouse;

	unsigned char m_keyboardState[256];
	//DIMOUSESTATE m_mouseState;

	int m_screenWidth, m_screenHeight;
	//int m_mouseX, m_mouseY;
	int m_keyX, m_keyY;
};

#endif